import Vue from "vue";
import App from "./App.vue";
import store from "./store";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "highlight.js/styles/github.css";
import "github-markdown-css/github-markdown.css";
import "./assets/css/global.css";
import "./assets/css/index2.css";
import "./assets/css/markdown.css";
// import { vueBaberrage } from "vue-baberrage";

Vue.config.productionTip = false;
Vue.use(ElementUI);
// Vue.use(vueBaberrage);

import { VueShowdown } from "vue-showdown";
Vue.component("VueShowdown", VueShowdown);

new Vue({
  render: (h) => h(App),
  store,
  router,
  created: initBlog,
  
}).$mount("#app");

function initBlog() {
  store.dispatch("getBlogInfo");
}
